<template>
  <!-- 净借记限额可用额度预警通知报文查询明细页面弹出框-->
  <el-dialog
    title="净借记限额可用额度预警通知报文查询明细"
    center
    :visible.sync="open"
    width="1024px"
    :close-on-click-modal="true"
    @close="closeFn"
  >
    <el-form ref="detailsForm" :model="formData" label-width="135px" :disabled="true">
      <el-row>
        <el-col :span="12">
          <el-form-item label="交易流水号：" prop="id">
            <el-input v-model="formData.id" placeholder="交易流水号" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="报文标识号：" prop="pkgId">
            <el-input v-model="formData.pkgId" placeholder="报文标识号" />
          </el-form-item>
        </el-col>
      </el-row>

      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="工作日期：" prop="workDate">
            <el-date-picker
              v-model="formData.workDate"
              type="date"
              value-format="yyyyMMdd"
              placeholder="选择日期"
              style="width: 100%"
            ></el-date-picker>
          </el-form-item>
        </el-col>
      </el-row>

      <el-row>
        <el-col :span="12">
          <el-form-item label="被监视行行号：" prop="watchStBrno">
            <el-input v-model="formData.watchStBrno" placeholder="被监视行行号" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="被监视行行名：" prop="watchStBrnoName">
            <el-input v-model="formData.watchStBrnoName" placeholder="被监视行行名" />
          </el-form-item>
        </el-col>
      </el-row>

      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="币种：" prop="curd1">
            <el-input v-model="formData.curd1" placeholder="币种" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="当前可用额度值：" prop="currentAvlblamt">
            <el-input v-model="formData.currentAvlblamt" placeholder="当前可用额度值" />
          </el-form-item>
        </el-col>
      </el-row>

      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="币种：" prop="curcd">
            <el-input v-model="formData.curcd" placeholder="币种" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="可用额度预警值：" prop="defaultAvlblamt">
            <el-input v-model="formData.defaultAvlblamt" placeholder="可用额度预警值" />
          </el-form-item>
        </el-col>
      </el-row>

      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="报文接收时间：" prop="rcvTime">
            <el-date-picker
              v-model="formData.rcvTime"
              type="datetime"
              value-format="yyyyMMdd"
              placeholder="选择时间"
              style="width: 100%"
            ></el-date-picker>
          </el-form-item>
        </el-col>
        <el-col :span="12"></el-col>
      </el-row>
    </el-form>
    <div slot="footer" class="dialog-footer"></div>
  </el-dialog>
</template>
<script>
export default {
  name: "NoticeDetails",
  components: {},
  props: {
    dictMap: {
      type: Object,
      default: () => {
        return {};
      },
    },
    formData: {
      type: Object,
      default: () => {
        return {};
      },
    },
  },
  data() {
    return {
      // 是否显示弹出层
      open: false,
    };
  },
  mounted() {},
  methods: {
    // 表单重置
    reset() {
      this.resetForm("detailsForm");
      // this.$set(this, "form", {});
    },
    closeFn() {
      this.open = false;
    },
    show() {
      this.open = true;
    },

    cancel() {
      this.open = false;
      this.reset();
    },
  },
};
</script>
<style>
.label-header-msg {
  font-weight: bold;
}

.form-card {
  margin-bottom: 10px;
}
</style>
